package com.baizhi.homework2;

public class USBTest {
    public static void main(String[] args) {
        //1. 创建电脑对象
        Computer computer = new Computer();
        //2. 创建键盘对象
        //Keyboard keyboard = new Keyboard("茶轴机械键盘");

        Mouse m = new Mouse("罗技");

        //3. 电脑开机
        computer.on();

        //4. 将键盘连接到电脑
        //computer.setUsb(keyboard);
        //computer.insertUSB(keyboard);
        computer.insertUSB(m);

        //6. 拔出键盘
        //computer.pullOutUSB(keyboard);
        computer.pullOutUSB(m);

        //7. 电脑关机
        //computer.off();
    }
}
